/*    */ package com.asteros.common.util.http;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public final class HttpResponse
/*    */   implements Serializable
/*    */ {
/* 16 */   private Map<String, String> headerFields = new HashMap();
/*    */   private int responseCode;
/*    */   private String responseMessage;
/*    */   private String data;
/*    */ 
/*    */   public HttpResponse()
/*    */   {
/*    */   }
/*    */ 
/*    */   public HttpResponse(int responseCode, String responseMessage, String data)
/*    */   {
/* 26 */     this.responseCode = responseCode;
/* 27 */     this.responseMessage = responseMessage;
/* 28 */     this.data = data;
/*    */   }
/*    */ 
/*    */   public String getContentType() {
/* 32 */     return (String)this.headerFields.get("Content-Type");
/*    */   }
/*    */   public String getLocation() {
/* 35 */     return (String)this.headerFields.get("Location");
/*    */   }
/*    */ 
/*    */   public void putHeaderValue(String header, String value)
/*    */   {
/* 40 */     this.headerFields.put(header, value);
/*    */   }
/*    */ 
/*    */   public int getResponseCode() {
/* 44 */     return this.responseCode;
/*    */   }
/*    */   public String getResponseMessage() {
/* 47 */     return this.responseMessage;
/*    */   }
/*    */   public String getData() {
/* 50 */     return this.data;
/*    */   }
/*    */ 
/*    */   public boolean is200ResponseCode()
/*    */   {
/* 55 */     return this.responseCode == 200;
/*    */   }
/*    */   public boolean is201ResponseCode() {
/* 58 */     return this.responseCode == 201;
/*    */   }
/*    */ }

/* Location:           C:\Users\Kirill\Desktop\esign\esign\esign.jar
 * Qualified Name:     com.topsbi.common.util.http.HttpResponse
 * JD-Core Version:    0.6.0
 */